home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_3
/
phoon
/
readme.amiga
< prev
Wrap
Text File
|
1994-02-24
|
4KB
|
91 lines
phoon - program to show the current phase of the moon on the
Amiga display. ported from the X11 program xphoon.
I ported this program so I can enjoy the same background picture as I have
On the Xterminals I use. I release this so you all can also enjoy it.
My part of the program is entirely free. Read other copyright notices from
libs and src directories.
And DISCLAIMER: use this program at your own risk. This software is
provided "as is" without express or implied warranty.
To run this program you need iff.library version 23.x located in your
libs: -directory and one of the fullmoon pictures (from fullmoons
directory in this distribution, names tell the x and y -radiuses of the
fullmoon pictures). Default path for fullmoon picture is "fullmoon.ilbm"
on current working directory, but that can be changed by binarypatching
the "phoon" or by giving a new path at command line.
Program outputs the phoon picture to ram:phoon.pic -file.
Usage for this program is:
phoon -f=FILE,-g=POSITION/K,-d=DOUBLE/S,-s=SHADE/S,
-r=REVERSE/S,-h=GMTOFFSET/N
-s :shades the shadowed part of the moon w/ calculated approximate
earthlighting, without this flag the area becomes completely
black.
-d :this flag douples every bit in shading pattern. If one's monitor
can't show single bits well, I have included fullmoon pictures
whose bits are doubled too (d504x252.ilbm and d504x189.ilbm)
-f filename :path and filename of the fullmoon picture you want to use
default filename is "fullmoon.ilbm" and it can also be
binarypatched to any name, max approximately 50 chars long.
-g dcx[dcy[drx[dry]]] :there are fullmoon pictures of different sizes.
this program gets the center and radius of the picture depending
on the size ratios between original (1600x1280) and the used
fullmoon picture. the ratio between bigfullmoon and fullmoon
radius and center is not always same (or there is a bug in
calculations). This option changes the center and radius of the
moon picture. For example -g +1-5+6 moves center one left and 5
up, increasing x-radius by 6.
Now i have noticed, that all fullmoons get shadowed correctly,
but there might be need for this option anyway (at least it is
fun to play w/ it)
-r this option reverses black and white color.
-h Since phase calculations need GMT time and Amiga uses local time
phoon tries to obtain time zone infromation from locale. If it is
not available or you want to overrun locale definition give
timezone offset as hours from GMT. Use positive values for
timezones east from GMT (middle and easter europe and russia) and
negative for American countries etc.
How to put fullmoon picture on the workbench background:
add NickPrefs to your s:startup-sequence just after IPrefs (read
NickPrefs documentation about it)
copy envars_sys/phoon_wbpic.prefs to your envarc:sys directory
write these lines in start of your s:user-startup:
phoon (options you might need)
Rename env:sys/phoon_wbpic.prefs env:sys/wbpicture.prefs
and to end of your s:user-startup
Delete ram:phoon.ilbm
fullmoon pictures are made the following way: (in unix w/ pbmplus)
xbmtopbm bigfullmoon.xbm | pnmscale .6666 | pgmtopbm | pbmtoilbm >504x504.ilbm
xbmtopbm bigfullmoon.xbm | pnmscale -xscale .3333 -yscale .25 | pgmtopbm | p4doublepixel | pbmtoilbm >d504x189.ilbm
...
Have fun
Tomi Ollila
too@cs.hut.fi
Kitarakuja 1 A 266
00420 Helsinki
Finland
-358-0-563-5733